package models

// 马甲用户
type PuppetUser struct {
	ID        int64 `json:"id,string" gorm:"column:id;primaryKey;type:int;size:64;comment:主键"`
	Deleted   bool  `json:"deleted" gorm:"column:deleted;type:tinyint(1);comment:删除标记"`
	CreatedAt int64 `json:"created_at" gorm:"column:created_at;type:int;size:64;comment:创建时间"`
	UpdatedAt int64 `json:"updated_at" gorm:"column:updated_at;type:int;size:64;comment:更新时间"`

	//账号信息
	NickName string `json:"nick_name" gorm:"column:nick_name;type:varchar(255);comment:昵称"`
	Avatar   string `json:"avatar" gorm:"column:avatar;type:varchar(512);comment:头像"`
	Gender   int    `json:"gender" gorm:"column:gender;type:tinyint;comment:性别"`
	WinCount int    `json:"win_count" gorm:"column:win_count;type:int;comment:中奖次数"`
}

func (u PuppetUser) TableName() string {
	return "puppet_user"
}

// 模式自动注册
func init() {
	Models = append(Models, &PuppetUser{})
}
